package com.hyt.it.ogt.kq.service.gov.model.param;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.hyt.it.ogt.kq.service.gov.model.vo.TaskInfoVO;
import com.hyt.loginfo.model.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Chengxh
 * @since 2021-08-14
 */
@Data
@Accessors(chain = true)
public class TaskInfoParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户", hidden = true)
    @JsonIgnoreProperties
    private User user;

    @Valid
    @NotNull(message = "任务信息不能为空")
    @ApiModelProperty(value = "任务信息")
    private TaskInfoVO taskInfoVO;

    @Valid
    @ApiModelProperty(value = "任务配置,线上参数")
    private List<TaskOnLineConfig> taskOnLineConfig;

    @Valid
    @ApiModelProperty(value = "任务配置,线下参数")
    private List<TaskOffLineConfig> taskOffLineConfig;

    @Valid
    @NotNull(message = "任务拓展信息不能为空")
    @ApiModelProperty(value = "任务拓展信息")
    private TaskInfoExtParam taskInfoExt;
}
